<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/public/header.jsp"%>
<%
    String gd_id = request.getParameter("gd_id") == null ? "" : request.getParameter("gd_id");
    String gd_content_id = request.getParameter("gd_content_id") == null ? "" : request.getParameter("gd_content_id");
%>
<html>
	<head>
		<title>工单打印预览</title>
		<style>
			.td1{
				padding-top:10px;
				padding-bottom:5px;
				font-size: 12px;
				text-align:center;
				width:25%;
			}
			.datagrid-cell {
			  font-size: 18px;
			}
		</style>
		<script type="text/javascript">
		jQuery(document).ready(function() {
			jQuery.ajax({
				type:"GET",
				url:"<%=contextPath %>/springMVC/gd/getGDBaseById?gd_id=<%=gd_id%>&gd_content_id=<%=gd_content_id%>",
				success:function(rtData){
					jQuery('#gd_name').html(rtData.gd_name);
					jQuery('#gd_code').html(rtData.gd_code);
					jQuery('#gd_depand_name').html(rtData.gd_depand_name);
					jQuery('#gd_sender').html(rtData.gd_sender);
					jQuery('#gd_notice_time').html(rtData.gd_notice_time);
					jQuery('#gd_content').html(rtData.gd_content);
					jQuery('#gd_detail_type_name').html(rtData.gd_detail_type_name);
					jQuery('#gd_total_time').html(rtData.gd_total_time);
					jQuery('#gd_start').html(rtData.gd_start);
					jQuery('#gd_will_end').html(rtData.gd_will_end);
					jQuery('#gd_admin_name').html(rtData.gd_admin_name);
					jQuery('#gd_worker_name').html(rtData.gd_worker_name);
					jQuery('#gd_worker_person').html(rtData.gd_worker_person);
				}
			});
		});
		function startPrint(obj){
		$(obj).hide();
		window.print();
	}
		</script>
	</head>
	<body>
		<form id="gdForm">
		<table align="center"  style="border-collapse: collapse;position:absolute;top:15%;。" border="1px"  width="99%"  bordercolor="#DDDDDD">
				<tr>
					<td align="right" nowrap  colspan="4" style="text-align:center;">
						<h2>派工单</h2>
					</td>
				 </tr>
				<tr>
					<td align="right" nowrap  class="td1">
						工单名称：
					</td>
					<td class="td2" >
						 <span id="gd_name" name="gd_name" ></span>
					</td>
					<td align="right" nowrap class="td1" >
						 工单编号：
					</td>
					<td class="td2"  >
						<span id="gd_code" name="gd_code" ></span>
					</td>
				 </tr>
				 <tr>
					<td align="right" nowrap class="td1" >
						派单人：
					</td>
					<td class="td2"  >
						<span id="gd_admin_name" name="gd_admin_name" ></span>
					</td>
					<td align="right" nowrap  class="td1">
						工单依据：
					</td>
					<td class="td2"  >
						 <span id="gd_depand_name" name="gd_depand_name" ></span>
					</td>
				 </tr>
				 <tr>
					<td align="right" nowrap  class="td1">
						 发包人：
					</td>
					<td class="td2"  >
						<span id="gd_sender" name="gd_sender" ></span>
					</td>
					<td align="right" nowrap  class="td1">
						通知日期：
					</td>
					<td class="td2"  >
						<span id="gd_notice_time" name="gd_notice_time" ></span>
					</td>
				 </tr>
				 <tr style="height:150px">
					<td align="right" nowrap class="td1" >
						 主要工作量及实施要求：
					</td>
					<td colspan='3' >
						<span id="gd_content" name="gd_content" ></span>
					</td>
				 </tr>
				  <tr>
					<td align="right" nowrap  class="td1">
						细分专业：
					</td>
					<td class="td2"  >
						<span id="gd_detail_type_name" name="gd_detail_type_name" ></span>
					</td>
					<td align="right" nowrap class="td1" >
						总工日数：
					</td>
					<td class="td2"  >
						<span id="gd_total_time" name="gd_total_time" ></span>
					</td>
				 </tr>
				  <tr>
					<td align="right" nowrap class="td1" >
						要求工期：
					</td>
					<td class="td2"  >
						<span id="gd_start" name="gd_start" ></span>
					</td>
					<td align="right" nowrap  class="td1">
						至
					</td>
					<td class="td2"  >
						<span id="gd_will_end" name="gd_will_end" ></span>
					</td>
				 </tr>
				  <tr>
					<td align="right" nowrap  class="td1">
						收单单位：
					</td>
					<td class="td2"  >
						<span id="gd_worker_name" name="gd_worker_name" ></span>
					</td>
					<td align="right" nowrap  class="td1">
						实施负责人：
					</td>
					<td class="td2"  >
						<span id="gd_worker_person" name="gd_worker_person" ></span>
					</td>
				 </tr>
				   <tr>
					<td class="td2" nowrap colspan="4" style="text-align:center;">
						<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-print'" onclick="startPrint(this);">确认打印</a>
					</td>
				 </tr>
		</table>
		</form>
	</body>
</html>


